
import Vue from 'vue'
import Vuex from 'vuex'
import todos from './modules/todos'
import user from './modules/user'

// 使用 use 安装一下
Vue.use(Vuex)

const store = new Vuex.Store({
  strict: process.env.NODE_ENV === 'development',
  modules: {
    todos,
    user
  }
})
export default store